﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace WebStore.Web.App.Models.Account
{
    public class RegisterModel
    {
        public const string RequiredErrorMessage = "Field is required";
        public const string CompareErrorMessage = "Field doesn't match";

        [DataType(DataType.EmailAddress)]
        [DisplayName("Email")]
        [Required(ErrorMessage = RequiredErrorMessage)]
        public string Email { get; set; }

        [DisplayName("Password")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage = RequiredErrorMessage)]
        public string Password { get; set; }

        [DisplayName("Confirm password")]
        [Required(ErrorMessage = RequiredErrorMessage)]
        [DataType(DataType.Password)]
        [Compare("Password",ErrorMessage = CompareErrorMessage)]
        public string ConifrmPassword { get; set; }
    }
}